﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DSVISUAL.LocalDNS
{
    [DebuggerDisplay("{Locality}, {Level2}, {Level1}, {Country}")]
    public class Location
    {
        public string Country { get; set; }

        /// <summary>
        /// State / Province
        /// </summary>
        public string Level1 { get; set; }

        /// <summary>
        /// County
        /// </summary>
        public string Level2 { get; set; }

        /// <summary>
        /// City
        /// </summary>
        public string Locality { get; set; }

        public override string ToString()
        {
            return string.Join(", ", $"{Locality},{Level2},{Level1},{Country}".Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries));
        }
    }
}
